<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>

<body>
<table border="1" cellpadding="2" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111">
   <tr align="center">
     <th>序号</th>
     <th>{[if $groupby ne '']}
	 {[$groupby]}
	 {[else]}
	 分类
	 {[/if]}</th>
     <th>数值</th>
	 <th>百分比</th>
   </tr>
   {[foreach name=outer key=key item=item from=$result]}
   {[assign var="no" value="`$key+$pager->from+1`"]}
   <tr>
     <td>{[$no]}</td>
     <td>{[$item.a]}</td>
     <td>{[if $r3 neq '-']}{[$item.c]}{[else]}{[$item.c]}{[/if]}</td>
	 <td>{[$item.p]}</td>	 
  </tr>
  {[/foreach]}
  <tr align="center">
     <td></td>
     <td>总数</td>
     <td>{[$total]}</td>
	 <td></td>
   </tr>
</table>
</body>
</html>